package com.juyu.miliao.scheduler.service.impl;

import com.juyu.miliao.scheduler.dao.redis.BeanWelfareRedisDao;
import com.juyu.miliao.scheduler.service.BeanWelfareService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;

/**
 * @ClassName: BeanWelfareServiceImpl
 * @Description: TODO
 * @Author zhangcheng
 * @Date 19-9-18上午11:48
 */
@Service
public class BeanWelfareServiceImpl implements BeanWelfareService {
    private final Logger beanWelfareLogger = LoggerFactory.getLogger("beanWelfare");
    @Resource
    private BeanWelfareRedisDao beanWelfareRedisDao;

    @Override
    public void resetBeanWelfareStatues() {
        beanWelfareLogger.info("开始重置领取寻豆奖励状态");
        beanWelfareRedisDao.resetBeanWelfareStatues();
        beanWelfareLogger.info("完成重置领取寻豆奖励状态");
    }
}
